#ifndef SNAKEFIELD_H
#define SNAKEFIELD_H

#include <QObject>
#include <QVector>

#include "defines.h"

#define MIN_LINES 20
#define MIN_COLUMNS 20
#define MAX_LINES 100
#define MAX_COLUMNS 100

class SnakeField : public QObject
{
    Q_OBJECT
private:
    Point fieldSize;
    Field field;


public:
    explicit SnakeField(QObject *parent = 0);

    void setFieldSize(quint32 lines, quint32 columns);
    Point getFieldSize();

    void createEmptyField();
    //TODO:: create random field

    //TODO:: loadmap from exist file
    //TODO:: create new map and save

    const Field & getField();
    
signals:
    
public slots:
    
};

#endif // SNAKEFIELD_H
